package spring.concurrency.executor.task;

import java.util.Date;
import java.util.concurrent.Callable;

public class CallableTask implements Callable<String> {
	
	private String name;
	
	public CallableTask(String name){
		this.name = name;
	}

	@Override
	public String call() throws Exception {
		System.out.printf("%s: Starting at : %s\n",name,new Date());
	    return "Hello, world";
	}

}
